

//读取缓存
function getStorage(key:any){
    return  JSON.parse(<string>localStorage.getItem(key))
}
//存储缓存
function setStorage(key:any,val:any){
    return  localStorage.setItem(key,JSON.stringify(val))
}
function removeStorage(key:any){
    localStorage.removeItem(key)
}
export { getStorage,setStorage,removeStorage}